package com.atguigu.eduservice.service;

import com.atguigu.eduservice.entity.EduCourse;
import com.atguigu.eduservice.entity.vo.CourseInfoVO;
import com.atguigu.eduservice.entity.vo.CourseQueryVO;
import com.atguigu.eduservice.entity.vo.CourseWebVO;
import com.atguigu.eduservice.entity.vo.PublishCourseInfoVO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author zr
 * @since 2021-11-12
 */
public interface EduCourseService extends IService<EduCourse> {

    String saveCourseInfo(CourseInfoVO courseInfoVO);

    CourseInfoVO getCourseInfo(String courseId);

    void updateCourseInfo(CourseInfoVO courseInfoVO);

    PublishCourseInfoVO getPublishCourseInfo(String courseId);

    void getCourseConditionInfo(Page<EduCourse> eduCoursePage, CourseQueryVO courseQueryVO);

    boolean removeCourseById(String courseId);

    List<EduCourse> findCourse();

    List<EduCourse> findCourseInfoById(String teacherId);

    Map<String, Object> getCourseFrontList(Page<EduCourse> coursePage, CourseQueryVO courseQueryVO);

    /**
     * 根据课程Id查询课程详情
     *
     * @param courseId
     * @return
     */
    CourseWebVO getCourseFrontInfo(String courseId);
}
